let name = '贫困户属性分析'
export const option = {
    tooltip: {
        trigger: 'item'
    },
    title: {
        text: name,
        top: '5%',
        x: 'center',
        textStyle: {
            color: 'white',
            fontSize: 20
        }
    },
    legend: {
        top: '25%',
        right: '0%',
        orient: 'vertical',
        formatter: '{name} ',
        textStyle: {
            color: 'white',
            fontSize: '15',
            padding: [8, 0, 0, 10]
        },
        itemStyle: {
            borderWidth: 0
        }
    },
    grid: {
        top: 0,
        bottom: 0
    },

    series: [
        {
            name,
            z: 2, //层级
            type: 'pie',
            radius: ['30%', '80%'],
            avoidLabelOverlap: false,
            padAngle: -10, //间隔大小
            top: '15%',
            right: '30%', //容器离右边的距离
            color: ['#0090ff', '#64aef9', '#544eff'],
            itemStyle: {
                borderRadius: 20, //容器的圆角样式
                borderColor: '#fff',
                borderWidth: 0,
                shadowColor: 'rgb(0, 60, 225)',
                shadowBlur: 5
            },
            label: {
                //饼图内文字的编辑
                color: '#fff',
                show: true,
                fontSize: 18,
                lineHeight: 0,
                position: 'inside',
                formatter: (param: any) => {
                    return `       ${param.data.name}  ${param.percent}% `
                }
            },
            emphasis: {
                label: {
                    show: true,
                    fontSize: 30,
                    fontWeight: 'bold'
                }
            },
            labelLine: {
                show: false
            },
            data: []
        }
    ]
}
